package com.bzkj.basicinfo.service.impl.warehouse;

import com.bzkj.basicinfo.domain.warehouse.MedicalInstitutions;
import com.bzkj.basicinfo.mapper.MedicalInstitutionsMapper;
import com.bzkj.basicinfo.service.warehouse.IMedicalInstitutionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 医疗机构信息维护Service业务层处理
 * 
 * @author lixinyu
 * @date 2025-06-13
 */
@Service
public class MedicalInstitutionsServiceImpl implements IMedicalInstitutionsService
{
    @Autowired
    private MedicalInstitutionsMapper medicalInstitutionsMapper;

    /**
     * 查询医疗机构信息维护
     * 
     * @param ID 医疗机构信息维护主键
     * @return 医疗机构信息维护
     */
    @Override
    public MedicalInstitutions selectMedicalInstitutionsByID(Long ID)
    {
        return medicalInstitutionsMapper.selectMedicalInstitutionsByID(ID);
    }

    /**
     * 查询医疗机构信息维护列表
     * 
     * @param medicalInstitutions 医疗机构信息维护
     * @return 医疗机构信息维护
     */
    @Override
    public List<MedicalInstitutions> selectMedicalInstitutionsList(MedicalInstitutions medicalInstitutions)
    {
        return medicalInstitutionsMapper.selectMedicalInstitutionsList(medicalInstitutions);
    }

    /**
     * 新增医疗机构信息维护
     * 
     * @param medicalInstitutions 医疗机构信息维护
     * @return 结果
     */
    @Override
    public int insertMedicalInstitutions(MedicalInstitutions medicalInstitutions)
    {
        return medicalInstitutionsMapper.insertMedicalInstitutions(medicalInstitutions);
    }

    /**
     * 修改医疗机构信息维护
     * 
     * @param medicalInstitutions 医疗机构信息维护
     * @return 结果
     */
    @Override
    public int updateMedicalInstitutions(MedicalInstitutions medicalInstitutions)
    {
        return medicalInstitutionsMapper.updateMedicalInstitutions(medicalInstitutions);
    }

    /**
     * 批量删除医疗机构信息维护
     * 
     * @param IDs 需要删除的医疗机构信息维护主键
     * @return 结果
     */
    @Override
    public int deleteMedicalInstitutionsByIDs(Long[] IDs)
    {
        return medicalInstitutionsMapper.deleteMedicalInstitutionsByIDs(IDs);
    }

}
